import json


import requests

headers = {
    'Host': 'www.hfjstt.com',
    'accept': '*/*',
    'content-type': 'application/x-www-form-urlencoded',
    'user-agent': 'iPhone9,1(iOS/13.3) Uninview(Uninview/1.0.0) Weex/0.26.0 750x1334',
    'accept-language': 'zh-cn',
}

data = 'userid=15d817698ece3be8b045a84d44f82384cb1e6ad6eb3e0be741985c6defe7a59e1584278637417&useruid=1'

# response = requests.post('https://www.hfjstt.com/index.php/index/user/userweixin', headers=headers, data=data)
#
#
#
#
#




session = requests.Session()

response = session.post('https://www.hfjstt.com/index.php/index/user/userweixin', headers=headers, data=data)

cookie_jar = response.cookies

cookie = requests.utils.dict_from_cookiejar(cookie_jar)

print cookie


jsonData = json.loads(response.content)

def print_json(data):
    print(json.dumps(data, sort_keys=True, indent=4, separators=(', ', ': '), ensure_ascii=False))

print_json(jsonData)